//
//  CarouselCell.swift
//  Swift30Days
//
//  Created by licheng ke on 2017/3/2.
//  Copyright © 2017年 licheng ke. All rights reserved.
//

import UIKit



class CarouselCell: UICollectionViewCell {
    @IBOutlet weak var titleLabel: UILabel!
    
    @IBOutlet weak var myImage: UIImageView!
    
    var obj :Interest?
    
    override func awakeFromNib() {
        super.awakeFromNib();
        titleLabel.backgroundColor = UIColor.white.withAlphaComponent(0.6);
        self.backgroundColor = .clear;
    }
    
    override func layoutSubviews() {
        super.layoutSubviews();
        titleLabel.text = obj?.title;
        myImage.image = obj?.featuredImage ?? #imageLiteral(resourceName: "b");
    }
    
    
}
